package com.tyf.bookreader;

import com.tyf.bookreader.service.BookService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/4/4 18:01
 */
@SpringBootTest(classes = BookReaderApplication.class)
public class testHome {

    @Autowired
    private BookService bookService;
    @Test
    public void testHotBook(){
        bookService.getHotBook().getData().forEach(v-> System.out.println("v = " + v));
    }
}
